package com.tingyuge.base.thread.concurrent2;

/**
 * Created by xiaodao
 * date: 2019/11/28
 */
public class MySon extends MyParent{
    static {
        System.out.println("1");
    }
    {
        System.out.println("2");
    }
    public MySon(){
        System.out.println('3');
    }

    public static void main(String[] args) {
        new MySon();
    }
}

class MyParent{
    static {
        System.out.println("p1");
    }
    {
        System.out.println("p2");
    }
    public MyParent(){
        System.out.println("P3");
    }


}
